package net.cohoivang.web;

import org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter;
import javax.servlet.*;
import javax.servlet.http.*;
import java.io.*;

public class MyFckHelperFilterDispatcher extends StrutsPrepareAndExecuteFilter {
	public void doFilter(ServletRequest req, ServletResponse res, FilterChain chain) throws IOException, ServletException {
		String url = ((HttpServletRequest)req).getRequestURI();
		if (url.indexOf("fckeditor") < 0) {
			super.doFilter(req, res, chain);
		}
		else{
			chain.doFilter(req, res);
		}
	}
}
